package com.jsoft.pds.view.beans.base;

import java.util.List;


public abstract class BaseViewListBean<BEAN extends BaseViewBean> extends BaseBean{

	private static final long serialVersionUID = -8692637431248588836L;
	
	protected List<BEAN> lista;
	private List<BEAN> filteredlista;
	protected boolean viewDialog;
	
	protected BEAN prototype;

	public void createAction(){
		System.out.println("create action");
		setViewDialog(true);
	}
	
	public void updateAction(BEAN bean){
	}
	
	public void deleteAction(BEAN bean){
	}
	
	public void viewAction(BEAN bean){
	}
	
	public void closeAction(){
		setViewDialog(false);
	}

	public List<BEAN> getFilteredlista() {
		return filteredlista;
	}
	public void setFilteredlista(List<BEAN> filteredlista) {
		this.filteredlista = filteredlista;
	}
	public List<BEAN> getLista() {
		return lista;
	}
	public void setLista(List<BEAN> lista) {
		this.lista = lista;
	}
	public boolean isViewDialog() {
		return viewDialog;
	}
	public void setViewDialog(boolean viewDialog) {
		this.viewDialog = viewDialog;
	}
	public BEAN getPrototype() {
		return prototype;
	}
	public void setPrototype(BEAN prototype) {
		this.prototype = prototype;
	}
}
